Skip to content

[bridge] Fix wrong mapping of WorkspaceStatus to prebuild when "snapshot" is missing #9924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2022

Conversation

geropl
Copy link
Member

@geropl geropl commented May 11, 2022

Description

Does what is says in the title, plus adding tests for the mapping. 🧘

Related Issue(s)

Fixes #9676

How to test

  1. cd components/ws-manager-bridge && yarn test

Release Notes

fix prebuild state mapping bug in face of missing snapshot (& add tests for it)

Documentation

@geropl geropl force-pushed the gpl/9676-snapshots branch from 26c173a to ccddd3d Compare May 11, 2022 13:00
@geropl geropl marked this pull request as ready for review May 11, 2022 13:16
@geropl geropl requested a review from a team May 11, 2022 13:16
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label May 11, 2022
}[] = [
{
name: "STOPPED",
expected: undefined,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with this change, the PrebuildWorkspace would not be updated on STOPPED events, or am I missing something?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that mimics the previous behavior, which completely ignored anything except Stopping.

@AlexTugarev
Copy link
Member

@geropl, I've just a single question about STOPPED events, other than that, it's a great change!

Copy link
Member

@AlexTugarev AlexTugarev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/hold

@geropl, I don't want to block this PR just because I don't get the point from the previous comment. Your call, if you think that's OK.

@geropl
Copy link
Member Author

geropl commented May 11, 2022

/unhold

@roboquat roboquat merged commit f01aafc into main May 11, 2022
@roboquat roboquat deleted the gpl/9676-snapshots branch May 11, 2022 16:33
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note size/XL team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Finished prebuild does not switch to "available" after execution is finished (stuck in "running")
3 participants